package com.xiaoma.base.chouxiang;


/**
 * 抽象类不一定非要有抽象方法。
 */
public abstract class AbastractPerson {

    private String name;

    static void sayHello() {
        System.out.println("hello");
    }

    public AbastractPerson(){
        System.out.println("抽象父类构造方法。。。");
    }

    private void  test(){
        System.out.println(" test");
    }

    public String getName() {
        System.out.println("getName.....");
        return name;
    }

    public void setName(String name) {
        System.out.println("setName.....");
        this.name = name;
    }

     abstract void fun1();

    public static void main(String[] args) {

    }
}
